@section('title')
用户消息 @parent
@show

@section('content')
<div class="navbar theme-white">
    <div class="navbar-inner">
        <div class="left"><a href="{{ route('center.index') }}" class="external link icon-only"> <i class="icon icon-back"></i></a></div>
        <div class="center sliding">站内信</div>
        <div class="right">
        </div>
    </div>
</div>
<div class="pages navbar-through toolbar-fixed">
    <div data-page="letter-users" class="page page-on-center pb60">
        <div class="page-content">
			<p class="buttons-row tab-row order">
				<a href="{{ route('letter.users') }}" class="button external">用户消息</a>
				<a href="#" class="button active">系统消息</a>
			</p>
            <div class="list-block media-list letter">
                @if($data && count($data)>0)
                <ul>
                    <?php foreach($data as $sys): ?>
                    <li>
                        <a style="width: 100%;" class="item-content item-link link" href="<?php echo URL::route('letter.sys_letters', array('id' => $sys['id'])); ?>">
                            <div class="item-media">
                                <img src="/img/logo.jpg" width="44" />
                            </div>
                            <div class="item-inner">
								<div class="item-title-row">
								  <div class="item-title"><?php echo $sys['subject']; ?></div>
								  <div class="item-after"></div>
								</div>
								<div class="item-text"><?php echo $sys['updated_at']; ?></div>
                           </div>
                        </a>
                    </li>
                    <?php endforeach; ?>
				@else
				<div class="content-block">
				<p>您目前没有系统消息。</p>
				</div>
				@endif
            </div>
        </div>
        @include('widgets.toolbar', array('active'=>'center'))
    </div>
</div>
@stop